#ifndef PACKDIYFORM_H
#define PACKDIYFORM_H

#include <QWidget>
#include<QMessageBox>
#include<QDateTime>

namespace Ui {
class PackDiyForm;
}

class PackDiyForm : public QWidget
{
    Q_OBJECT

public:
    explicit PackDiyForm(QWidget *parent = nullptr);
    ~PackDiyForm();
    void on_pushButton_add_clicked();
    void on_pushButton_startcom_clicked();
    void on_pushButton_startexe_clicked();
    void getPos(int mode, int iaxisNum,int iaxislist[]);
    void gopos(int mode, int iMoveLen,int iaxisNum,int* iaxislist,float* fPoslist,int iout,int* outlist,int outtime);
    void updateWin();

protected:
    void showEvent(QShowEvent *events) override;

private:
    Ui::PackDiyForm *ui;
    QList<int> modelist;
    float d_dpos[4];
    int axislist[4]={0,1,2,3};
    bool runflage=false;
    QMessageBox::StandardButton warn;
    QDateTime timeNow=QDateTime::currentDateTime();
};

#endif // PACKDIYFORM_H
